package com.iOS.dto;

import com.iOS.entity.BlogInfo;
import com.iOS.entity.UserInfo;
import com.iOS.enums.BlogInfoEnum;

public class BlogInfoExecution {
    private int state;
    /*状态标识*/
    private String stateInfo;
    /*用户对象*/
    private BlogInfo blogInfo;

    /*博客信息*/
    public BlogInfoExecution(BlogInfoEnum blogInfoEnum) {
        this.state = blogInfoEnum.getState();
        this.stateInfo = blogInfoEnum.getStateInfo();
    }

    public BlogInfoExecution(BlogInfoEnum blogInfoEnum,BlogInfo blogInfo) {
        this.state = blogInfoEnum.getState();
        this.stateInfo = blogInfoEnum.getStateInfo();
        this.blogInfo = blogInfo;
    }
    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getStateInfo() {
        return stateInfo;
    }

    public void setStateInfo(String stateInfo) {
        this.stateInfo = stateInfo;
    }

    public BlogInfo getBlogInfo() {
        return blogInfo;
    }

    public void setBlogInfo(BlogInfo blogInfo) {
        this.blogInfo = blogInfo;
    }

}
